package org.jeecgframework.web.material.entity;

import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;

import javax.xml.soap.Text;

import java.sql.Blob;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.SequenceGenerator;

import org.jeecgframework.poi.excel.annotation.Excel;

/**   
 * @Description: xdkj
 * @date 2015-08-31 23:04:51
 * @version V1.0   
 *
 */
@Entity
@Table(name = "order_product", schema = "")
@SuppressWarnings("serial")
public class OrderProductEntity implements java.io.Serializable {
	//主键ID
	private java.lang.Integer id;
	//产品ID
	@Excel(name="产品ID")
	private PProductEntity productId;
	//订单ID
	@Excel(name="订单ID")
	private OrderInfoEntity orderId;
	//数量
	@Excel(name="数量")
	private java.lang.String amount;
	//单价
	@Excel(name="单价")
	private java.lang.String price;
	//总价
	@Excel(name="总价")
	private java.lang.String totalPrice;
	//备注
	@Excel(name="备注")
	private java.lang.String remark;
	
	/**
	 *get方法: 取得主键ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name ="ID",nullable=false,length=20)
	public java.lang.Integer getId(){
		return this.id;
	}

	/**
	 *set方法: 设置主键ID
	 */
	public void setId(java.lang.Integer id){
		this.id = id;
	}
	/**
	 *get方法: 取得产品
	 */
	@OneToOne(fetch=FetchType.EAGER)
	@JoinColumn(name ="PRODUCT_ID")
	public PProductEntity getProductId(){
		return this.productId;
	}

	/**
	 *set方法: 设置产品ID
	 */
	public void setProductId(PProductEntity productId){
		this.productId = productId;
	}
	/**
	 *get方法: 取得订单ID
	 */
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name ="ORDER_ID")
	public OrderInfoEntity getOrderId(){
		return this.orderId;
	}

	/**
	 *set方法: 设置订单ID
	 */
	public void setOrderId(OrderInfoEntity orderId){
		this.orderId = orderId;
	}
	/**
	 *get方法: 取得数量
	 */
	@Column(name ="AMOUNT",nullable=true,length=45)
	public java.lang.String getAmount(){
		return this.amount;
	}

	/**
	 *set方法: 设置数量
	 */
	public void setAmount(java.lang.String amount){
		this.amount = amount;
	}
	/**
	 *get方法: 取得单价
	 */
	@Column(name ="PRICE",nullable=true,length=45)
	public java.lang.String getPrice(){
		return this.price;
	}

	/**
	 *set方法: 设置单价
	 */
	public void setPrice(java.lang.String price){
		this.price = price;
	}
	/**
	 *get方法: 取得总价
	 */
	@Column(name ="TOTAL_PRICE",nullable=true,length=45)
	public java.lang.String getTotalPrice(){
		return this.totalPrice;
	}

	/**
	 *set方法: 设置总价
	 */
	public void setTotalPrice(java.lang.String totalPrice){
		this.totalPrice = totalPrice;
	}
	/**
	 *get方法: 取得备注
	 */
	@Column(name ="REMARK",nullable=true,length=45)
	public java.lang.String getRemark(){
		return this.remark;
	}

	/**
	 *set方法: 设置备注
	 */
	public void setRemark(java.lang.String remark){
		this.remark = remark;
	}
}
